# Maintainer: AndyRTR <andyrtr@archlinux.org>
# Contributor: Robert McCathie <archaur at rmcc dot com dot au>

pkgname=libwps
pkgver=0.4.10
pkgrel=1
pkgdesc="a Microsoft Works file word processor format import filter library"
arch=('x86_64')
url="https://sourceforge.net/projects/libwps/"
license=('LGPL')
depends=('libwpd' 'librevenge')
makedepends=('boost' 'doxygen')
source=("http://downloads.sourceforge.net/project/libwps/$pkgname/$pkgname-$pkgver/$pkgname-$pkgver.tar.xz")
sha1sums=('01f5fb626ed82bb3044baa28e265791f0949daee')

build() {
	cd $pkgname-$pkgver
	./configure  --prefix=/usr \
	  --disable-static
	make
}

check() {
	cd ${pkgname}-${pkgver}
	make check
}

package() {
	cd $pkgname-$pkgver
	make DESTDIR="$pkgdir" install
}
